package com.lzy.system.business.dto;

import com.lzy.validator.StringMinMaxConstraint;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * <p>
 * 业务模型分组
 * </p>
 *
 * @author lcc
 * @since 2024-01-15
 */
@Getter
@Setter
@Accessors(chain = true)
@ApiModel(value = "SysBusGroup新增dto", description = "业务模型分组")
public class SysBusGroupAddDTO {

    @ApiModelProperty("分组名称")
    @NotBlank(message = "分组名称不能为空")
    @StringMinMaxConstraint(min = 1, max = 50, message = "分组名称长度为1-50个字符")
    private String group_name;

    @ApiModelProperty("分组描述")
    @NotBlank(message = "分组描述不能为空")
    private String group_desc;

    @ApiModelProperty("父id")
    private String pid;
}
